package org.springframework.test.configuration;

import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;
import org.springframework.stereotype.Component;

/**
 * [简要描述]:
 * [详细描述]:
 *
 * @author ZouHaiBo
 * @version 1.0, 2021/8/4 19:16
 * @since JDK 1.8
 */
public class ImportSelectClass implements ImportSelector
{

	@Override
	public String[] selectImports(AnnotationMetadata importingClassMetadata)
	{
		return new String[]{"org.springframework.test.configuration.ImportSelectClass.ImportA",
				"org.springframework.test.configuration.ImportSelectClass.ImportB"};
	}


	public static class ImportA {}
	public static class ImportB {}

}
